Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • What is the difference between" i.county|trend " and " i.county##c.trend "?

    In the process of learning the code, I found this way of writing: "i.county|trend" (county is the code of the county, and trend is the time trend variable) , does this represent County specific time trend ?
    I know that County specific time trend can be set in this way: "i.county##c.trend", do both Settings represent County specific Time Trends?

  • #2
    "i.county##c.trend"
    is equivalent to

    Code:
    i.county c.trend  i.county#c.trend
    See

    Code:
    help fvvarlist
    I guess that you are looking at very old syntax predating factor variables where

    Code:
    xi: regress depvar i.county|trend
    would be equivalent to

    Code:
    regress depvar trend i.county#c.trend
    Last edited by Andrew Musau; 19 Nov 2020, 06:19.

    Comment


    • #3
      Hi, Andrew:

      Thanks for your prompt response. Your answer helps me a lot!

      Comment

      Working...
      X